home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 081 / logentry.arc / LOGENTRY.DOC < prev    next >
Encoding:
Text File  |  1987-08-10  |  1.1 KB  |  38 lines

  1. LogEntry
  2.  
  3. Steve Roughton (Excalibur 104/39), August 1987.
  4. Source compiled with Microsoft C 4.0.
  5.  
  6.  
  7. Prepends a Fido/Opus log timestamp to the command line args and echoes
  8. the whole thing to the standard output.  Useful for making custom
  9. entries in the log. 
  10.  
  11. LogEntry was written because there were several places I wanted to make
  12. special annotations in the log under the control of RUNOPUS.BAT.  An
  13. example would be a note when the nodelist gets recompiled:
  14.  
  15.     if not exist c:\netmail\nodediff.a?? goto restart
  16.     for %%x in (c:\netmail\nodediff.a??) do xarc %%x
  17.     del c:\netmail\nodediff.a??
  18.     if not exist nodediff.* goto restart
  19.     xlatlist
  20.     opusnode -f
  21.     del nodediff.*
  22. --> LOGENTRY >>opus.log OPUS Recompiled Nodelist
  23.     goto restart
  24.  
  25.  
  26. The entry in the log would look like
  27.  
  28.     $ 10 Aug  5:24:34 OPUS Recompiled Nodelist
  29.  
  30.  
  31. LogEntry uses '$' for its line identifier, which is supposed to mean
  32. 'Sysop Entry'.  This can be changed using the Norton utilities or any
  33. equivalent binary editor.  The string to look for is
  34.  
  35.                "$ %02d %s %2d:%02d:%02d "
  36.  
  37. which is the output format for the timestamp. 
  38.